package com.et.action;

import com.et.service.PublicService;

public class IndexAction extends GenericAction{
	private static final long serialVersionUID = 1L;
	/**公共service*/
	private PublicService publicService;
	
	//前台页面 -> 测试页面
	public String toTest()
	{
		return SUCCESS;
	}
	
	//AJAX ->发送测试信息
	public void toTestAjax()
	{
		String msg = "";
		try{
			msg = "true";
			
		}catch(Exception e)
		{
			msg = "false";
			e.printStackTrace();
		}
		this.outPrintText(msg);
	}
	
	
	
	
	
	
	/*****************impl**********************/
	public PublicService getPublicService() {
		return publicService;
	}
	public void setPublicService(PublicService publicService) {
		this.publicService = publicService;
	}
	
	
	

}
